package com.atmc.service;

import com.atmc.bean.User;
import com.atmc.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User selectUser(String username) {
        return userMapper.selectUser(username);
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public int insertOne(User user) {
        return userMapper.insertOne(user);
    }


}
